// 定义与Java中BaseResponse<T>对应的前端数据结构
export interface BaseResponse {
  code: string
  message: string
}

// 单个用户对象的ts类型
export interface Danmaku {
  id: number
  videoName: string
  userName: string
  content: string
  place?: string
  type?: string
  color?: string
  createTime: string
}

export interface DanmakuAddRequest {
  content: string
  videoId: number
  userId: number
  place?: number
  type?: number
  color?: number
}

export interface DanmakuQueryRequest {
  videoName?: string
  userName?: string
}

export interface DanmakuUpdateRequest {
  id: number
  content: string
  videoId: number
  userId: number
  place?: number
  type?: number
  color?: number
}
export interface PageDanmaku extends BaseResponse {
  data: {
    current?: number
    pages?: number
    records?: Array<Danmaku>
    size?: number
    total?: number
  }
}

export interface DeleteRequest {
  id: number
}
